<template>
	<view class="container">
		<view class="bill-box" v-for="(item,index) in tixianData" :key="index">
			<view class="bill-msg">
				<view class="left">{{item.bank}}</view>
				<view class="right">{{item.money}}</view>
			</view>
			<view class="time">{{item.create_time}}</view>
		</view>
	</view>
</template>

<script>
	import {tixianList} from "../../api/balance.js"
	export default{
		data (){
			return{
				tixianData:[]
			}
		},
		onLoad() {
			this.getData()
		},
		methods:{
			getData(){
				this.post(tixianList,{
					user_id:uni.getStorageSync("userInfo").id
				}).then(res => {
					if(res.code == 1){
						this.tixianData = res.data.data
					}
				})
			}
		}
	}
</script>

<style>
	.container{
		padding: 43rpx 30rpx;
	}
	.bill-box{
		width: 100%;
		border-bottom: 1px solid #D4D4D4;
		padding-bottom: 20rpx;
		margin-bottom: 20rpx;
	}
	.bill-msg{
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	.left{
		font-size: 26rpx;
		font-weight: 500;
		color: #333333;
	}
	.right{
		font-size: 28rpx;
		font-weight: 800;
		color: #333333;
	}
	.time{
		font-size: 24rpx;
		font-weight: 300;
		color: #333333;
		margin-top: 10rpx;
	}
</style>
